package com.cn.por.util.Regex;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class RegexExample {

    public static void main(String[] args) {
        String regx = "\\d*\\s*[．\\.]\\s*\\D*[？?]+";
        Pattern pattern = Pattern.compile(regx);


        // 创建匹配器
        Matcher matcher = pattern.matcher("啊 90 . 数据库中存储过程与函数的区别?");

        // 查找并输出所有匹配的子字符串
        while (matcher.find()) {
            System.out.println("匹配到的子字符串: " + matcher.group());
        }
    }
}
